package org.eclipse.moquette.spi.impl.events;

import org.eclipse.moquette.proto.messages.AbstractMessage;
import org.eclipse.moquette.server.ServerChannel;

/**
 * Created by alex on 15-6-1.
 */
public class OutputMessagingEvent extends MessagingEvent {

    private ServerChannel m_channel;
    private AbstractMessage m_message;

    public OutputMessagingEvent(ServerChannel channel, AbstractMessage message) {
        m_channel = channel;
        m_message = message;
    }

    public ServerChannel getChannel() {
        return m_channel;
    }

    public AbstractMessage getMessage() {
        return m_message;
    }
}
